package com.banmao.algorithm.No1To100.No24;

public class Answer {

    public static void main(String[] args) {
        ListNode head = LinkedListUtils.generateByArray(new int[]{1, 2, 3, 4, 5});

        LinkedListUtils.printLinkedList(head);

        Solution1 solution = new Solution1();
        ListNode listNode = solution.swapPairs(head);

        LinkedListUtils.printLinkedList(listNode);

    }

}
